package main

import (
	"brute-all/generate"
	"brute-all/typetcp"
	"flag"
	"os"
)

var (
	TargetsF string
	User     string
	Pwd      string
	GenPwd   bool
)

func main() {
	flag.StringVar(&TargetsF, "t", "", "targets file")
	flag.StringVar(&User, "u", "", "user file")
	flag.StringVar(&Pwd, "p", "", "pwd file")
	flag.BoolVar(&GenPwd, "g", false, "genreate password.")
	flag.Parse()

	if Pwd != "" && TargetsF != "" {
		brute := typetcp.NewBruter(TargetsF, User, Pwd)
		brute.BruteAll()
		os.Exit(0)
	}

	if GenPwd {
		generate.Cli()
		os.Exit(0)
	}
}
